cmake_minimum_required(VERSION 2.8.7)

project(Test_Gosterim)

find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

set(SOURCES
  Test_Gosterim.cpp
  main.cpp
)
set(HEADERS
  Test_Gosterim.h
)
set(MOC
  Test_Gosterim.h
)
set(UI Test_Gosterim.ui)

# Qt Preprocessing
qt4_wrap_cpp(MOC_GENERATED ${MOC})
qt4_wrap_ui(UI_GENERATED ${UI})
#qt4_add_resources(RCC_GENERATED ${RCC})

# File Filters
#source_group("Resource Files" FILES ${RCC} )
source_group("Form Files" FILES ${UI} )
source_group("Generated Files" FILES ${MOC_GENERATED} ${UI_GENERATED} )

# Include Dirs
include_directories(
	${KONTROL_INCLUDE_DIRS} 
	${CMAKE_CURRENT_BINARY_DIR} # MOC ve UI dosyalari icin
	) 

# Application
add_executable(Test_Gosterim ${SOURCES} ${HEADERS} ${MOC_GENERATED} ${UI_GENERATED})

# Add debug postfix for debug builds (CMAKE_DEBUG_POSTFIX doesn't work for executables)
set_property(TARGET Test_Gosterim PROPERTY DEBUG_POSTFIX -d)

# Libraries
target_link_libraries(Test_Gosterim Ortak Gosterim ${QT_LIBRARIES})

# Install
install(TARGETS Test_Gosterim RUNTIME DESTINATION bin)
